#pragma once
#include <iostream>
#include <vector>
#include <unistd.h>

typedef void (*task_t) ();

void task1()
{
    std::cout<<"和连义鸿吃饭"<<std::endl;
}

void task2()
{
    std::cout<<"和连义鸿散步"<<std::endl;
}

void task3()
{
    std::cout<<"和连义鸿聊八卦"<<std::endl;
}

void task4()
{
    std::cout<<"和连义鸿休息"<<std::endl;
}

void BigAzhe(){
    std::cout<<"我是坏宝贝!!!"<<std::endl;

    sleep(10);
    exit(1);
} 

void LoadTask(std::vector<task_t>* tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}